Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow and CMake support for formatting #3340

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

mkindahl
Copy link
Contributor

Add a workflow to check that CMake files are correctly formatted as
well as a custom target to format CMake files in the repository. This
commit also runs the formatting on all CMake files in the repository.

@mkindahl mkindahl marked this pull request as ready for review June 16, 2021 10:06
@mkindahl mkindahl requested a review from a team as a code owner June 16, 2021 10:06
@mkindahl mkindahl requested review from pmwkaa, nikkhils and svenklemm and removed request for a team June 16, 2021 10:06
@mkindahl mkindahl self-assigned this Jun 16, 2021
@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

Merging #3340 (cddbd7c) into master (cf5626b) will increase coverage by 0.01%.
The diff coverage is n/a.

❗ Current head cddbd7c differs from pull request most recent head b22f9e1. Consider uploading reports for the commit b22f9e1 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3340      +/-   ##
==========================================
+ Coverage   90.57%   90.58%   +0.01%     
==========================================
  Files         211      211              
  Lines       35536    35536              
==========================================
+ Hits        32188    32192       +4     
+ Misses       3348     3344       -4     
Impacted Files Coverage Δ
src/loader/bgw_message_queue.c 88.15% <0.00%> (+2.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf5626b...b22f9e1. Read the comment docs.

Comment on lines +1 to +7
#!/bin/bash

SCRIPTDIR=$(cd $(dirname $0); pwd)
BASEDIR=$(dirname $SCRIPTDIR)

find $BASEDIR -name CMakeLists.txt -exec cmake-format -i {} +
find $BASEDIR/src $BASEDIR/test $BASEDIR/tsl -name '*.cmake' -exec cmake-format -i {} +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this script executed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the custom target inside the top-level CMakeLists.txt.

Add a workflow to check that CMake files are correctly formatted as
well as a custom target to format CMake files in the repository. This
commit also runs the formatting on all CMake files in the repository.
@mkindahl mkindahl enabled auto-merge (rebase) June 17, 2021 20:39
@mkindahl mkindahl merged commit 71e8f13 into timescale:master Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants